package com.quanquan.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class HelloController {

    @RequestMapping("/hello")
    public String hello(Model model, @RequestParam(value="name", required=false, defaultValue="World") String name) {
        model.addAttribute("name", name);
        return "hello";
    }

//    public static void main(String[] args) {
//        ComThread.InitSTA();
//        //MoveLabel
//        ActiveXComponent com = new ActiveXComponent("CLSID:BB069686-EF34-11D3-856E-000021ECAA5D") ;
//        Dispatch disp = com.getObject();
//
//        String num = "2";//    String result = Dispatch.call(disp, "CardOut");
//        Dispatch.call( disp, "Clear");
//        ComThread.Release();
//        System.out.println(Dispatch.get(disp, "ErrCode"));
//        System.out.println(Dispatch.get(disp, "ErrMsg"));
//    }
}
